package lab02.test27;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Test27 {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        try {
            System.out.println("enter a intnumber:");
            int number = sc.nextInt();
        }catch (InputMismatchException a) {
            System.out.println("输入不为整数");
        }
    }
}
